<?php
	/*
		Cassandra Cluster Admin
		
		@author Sébastien Giroux
		@copyright All rights reserved - 2011
	*/

	/*
		Add as many Cassandra nodes as you want in the nodes array like so: array('10.70.80.90:9160','10.70.80.100:9160','10.70.80.110:9160')
		
		Multi cluster is also supported:
		
		$CASSANDRA_CLUSTERS = array(array('nodes' => array('127.0.0.1:9160'),
										 'username' => '',
										 'password' => ''),
								   array('nodes' => array('10.12.13.14:9160','10.13.12.14:9160'),
										 'username' => '',
										 'password' => ''));
	*/
	
	$CASSANDRA_CLUSTERS = array(array('nodes' => array('127.0.0.1:9160'),
								     'username' => '',
								     'password' => ''));
	
	/*
		Read-only keyspace
		
		Some keyspace can be set to read-only so nothing can be added/edited/deleted from them.
	*/
	
	define('READ_ONLY_KEYSPACES','system'); // Seperate by comma (,)
	
	/*
		Enter your Cassandra Cluster Admin credentials here
	*/
	define('CCA_LOGIN_REQUIRED',false);
	define('CCA_USERNAME','root'); 	
	define('CCA_PASSWORD','');
	
	define('MX4J_HTTP_ADAPTOR_PORT',8081);
	
	// connect db of website
  $dbnews = "viking_front";
  define("DB_NEWS", $dbnews);
  define("IP_NEWS", 'localhost');
  define("USER_NEWS", "root");
  define("PASS_NEWS", "");
  
  $conn = mysql_connect(IP_NEWS, USER_NEWS, PASS_NEWS) or die("can't connect database");
  mysql_select_db(DB_NEWS, $conn);
  
  define('WEBSITE_HOST', 'http://' . $_SERVER['HTTP_HOST']); 
  define('NAME_ROOT', "/Fresho");
  define('WEBSITE_URL', WEBSITE_HOST. NAME_ROOT);
  //editoR
  define('SBASEVIRTUAL0', NAME_ROOT . "/uploads");
  define('SBASE0', $_SERVER['DOCUMENT_ROOT'] . SBASEVIRTUAL0);   
 // define('SBASE0',"/usr/local/viking/current/public/website/uploads");
  define('FILE_ASSETMANAGER', NAME_ROOT . "/administrator");
    
?>